\hypertarget{class____Injector}{}\section{\+\_\+\+\_\+\+Injector Class Reference}
\label{class____Injector}\index{\+\_\+\+\_\+\+Injector@{\+\_\+\+\_\+\+Injector}}


粒子入射枪,可以指定粒子种类,和入射位置,目前尽采用四方形束流,以后会有更多的如高斯型等.  




{\ttfamily \#include $<$injector.\+h$>$}



Collaboration diagram for \+\_\+\+\_\+\+Injector\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{de/dfb/class____Injector__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Injector_ac808222e24a63590a2668d9d88fe4095}{}{\bfseries \+\_\+\+\_\+\+Injector} (int id, int \hyperlink{class____Injector_a4b73407b88f8100467ff96223daf0c16}{species}, const double \&\hyperlink{class____Injector_a4c049ee41a130898e724da94f449ee2c}{charge}, const double \&\hyperlink{class____Injector_afdfbc1a91bff64ae7d72ae5cf5d66523}{mass}, \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ long $>$ \hyperlink{class____Injector_af77a69bb48ddf567a7bf0bee02cd9ffb}{position}, \hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \&\hyperlink{class____Injector_aaf0d94bdf7f6bf59a56f9ad7335ee591}{velocity}, const long \&\hyperlink{class____Injector_a648d24d44961e7a00296d743b155574c}{total}, const double \hyperlink{class____Injector_a50f2657e4e2d8fe60619f8c7b9f23a8c}{length}, const double \hyperlink{class____Injector_a3463b30b920b35418ded0984fe8ae387}{flux}, const double \&\hyperlink{class____Injector_a4ecfae6ba4e8efc87b3ff5d3f20d3836}{dx}, const double \&dy)\label{class____Injector_ac808222e24a63590a2668d9d88fe4095}

\item 
\hypertarget{class____Injector_a921bbb4ec1562cfd7ab4e8ac76b619b8}{}void \hyperlink{class____Injector_a921bbb4ec1562cfd7ab4e8ac76b619b8}{trigger} (\hyperlink{class____Simbox}{\+\_\+\+\_\+\+Simbox} \&mybox)\label{class____Injector_a921bbb4ec1562cfd7ab4e8ac76b619b8}

\begin{DoxyCompactList}\small\item\em 入射粒子加入到box中 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_ace262b1a450c4360bfe681469b19b54d}{}void {\bfseries destroy} ()\label{class____Injector_ace262b1a450c4360bfe681469b19b54d}

\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Injector_ab4f5e8f04d7bef1be88ea9973db0fd8c}{}int {\bfseries id}\label{class____Injector_ab4f5e8f04d7bef1be88ea9973db0fd8c}

\item 
\hypertarget{class____Injector_a4b73407b88f8100467ff96223daf0c16}{}int \hyperlink{class____Injector_a4b73407b88f8100467ff96223daf0c16}{species}\label{class____Injector_a4b73407b88f8100467ff96223daf0c16}

\begin{DoxyCompactList}\small\item\em 入射粒子种类 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_af77a69bb48ddf567a7bf0bee02cd9ffb}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ long $>$ \hyperlink{class____Injector_af77a69bb48ddf567a7bf0bee02cd9ffb}{position}\label{class____Injector_af77a69bb48ddf567a7bf0bee02cd9ffb}

\begin{DoxyCompactList}\small\item\em 枪的中心位置 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a1e2e93fb02efca4f2cb4a0d5afb56c8a}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Injector_a1e2e93fb02efca4f2cb4a0d5afb56c8a}{gps}\label{class____Injector_a1e2e93fb02efca4f2cb4a0d5afb56c8a}

\begin{DoxyCompactList}\small\item\em G\+P\+S of gun. \end{DoxyCompactList}\item 
\hypertarget{class____Injector_aaf0d94bdf7f6bf59a56f9ad7335ee591}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Injector_aaf0d94bdf7f6bf59a56f9ad7335ee591}{velocity}\label{class____Injector_aaf0d94bdf7f6bf59a56f9ad7335ee591}

\begin{DoxyCompactList}\small\item\em 束流速度 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a50f2657e4e2d8fe60619f8c7b9f23a8c}{}double \hyperlink{class____Injector_a50f2657e4e2d8fe60619f8c7b9f23a8c}{length}\label{class____Injector_a50f2657e4e2d8fe60619f8c7b9f23a8c}

\begin{DoxyCompactList}\small\item\em 束流横向宽度 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_aa4848c52c3ab0b96e3ab6ec78f1956e4}{}int \hyperlink{class____Injector_aa4848c52c3ab0b96e3ab6ec78f1956e4}{repetion}\label{class____Injector_aa4848c52c3ab0b96e3ab6ec78f1956e4}

\begin{DoxyCompactList}\small\item\em 重复次数,目前美柚用 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a3463b30b920b35418ded0984fe8ae387}{}double \hyperlink{class____Injector_a3463b30b920b35418ded0984fe8ae387}{flux}\label{class____Injector_a3463b30b920b35418ded0984fe8ae387}

\begin{DoxyCompactList}\small\item\em 束流,粒子数/立方米/s \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a4ecfae6ba4e8efc87b3ff5d3f20d3836}{}double \hyperlink{class____Injector_a4ecfae6ba4e8efc87b3ff5d3f20d3836}{dx}\label{class____Injector_a4ecfae6ba4e8efc87b3ff5d3f20d3836}

\begin{DoxyCompactList}\small\item\em 网格的x,y方向的宽度 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a924526fe6b36e7ffe221c5a269bb8358}{}double {\bfseries dy}\label{class____Injector_a924526fe6b36e7ffe221c5a269bb8358}

\item 
\hypertarget{class____Injector_a92a9bdb86b5d437c638e06508d8c9fa6}{}long \hyperlink{class____Injector_a92a9bdb86b5d437c638e06508d8c9fa6}{diameter}\label{class____Injector_a92a9bdb86b5d437c638e06508d8c9fa6}

\begin{DoxyCompactList}\small\item\em 束流横向所占网格数 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a766d44b1386fd4f010f0bd43f36f3ad0}{}double \hyperlink{class____Injector_a766d44b1386fd4f010f0bd43f36f3ad0}{energy}\label{class____Injector_a766d44b1386fd4f010f0bd43f36f3ad0}

\begin{DoxyCompactList}\small\item\em 单个粒子能量,j \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a4c049ee41a130898e724da94f449ee2c}{}double \hyperlink{class____Injector_a4c049ee41a130898e724da94f449ee2c}{charge}\label{class____Injector_a4c049ee41a130898e724da94f449ee2c}

\begin{DoxyCompactList}\small\item\em 粒子电荷 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_afdfbc1a91bff64ae7d72ae5cf5d66523}{}double \hyperlink{class____Injector_afdfbc1a91bff64ae7d72ae5cf5d66523}{mass}\label{class____Injector_afdfbc1a91bff64ae7d72ae5cf5d66523}

\begin{DoxyCompactList}\small\item\em 粒子质量 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_a648d24d44961e7a00296d743b155574c}{}long \hyperlink{class____Injector_a648d24d44961e7a00296d743b155574c}{total}\label{class____Injector_a648d24d44961e7a00296d743b155574c}

\begin{DoxyCompactList}\small\item\em 入射宏粒子总数 \end{DoxyCompactList}\item 
\hypertarget{class____Injector_ab60f580734f6773a8c0a1c89772b4fd4}{}double \hyperlink{class____Injector_ab60f580734f6773a8c0a1c89772b4fd4}{lorentz\+\_\+gamma}\label{class____Injector_ab60f580734f6773a8c0a1c89772b4fd4}

\begin{DoxyCompactList}\small\item\em 粒子的gamma因子 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Injector_a904426b2cee84aa9f4fa90f8af6d443d}{}static long \& \hyperlink{class____Injector_a904426b2cee84aa9f4fa90f8af6d443d}{pid} = \hyperlink{class____Ptcls_ae27fae8bcdf7b0f95d60931480a149d4}{\+\_\+\+\_\+\+Ptcls\+::total\+\_\+id}\label{class____Injector_a904426b2cee84aa9f4fa90f8af6d443d}

\begin{DoxyCompactList}\small\item\em 初始粒子的id \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
粒子入射枪,可以指定粒子种类,和入射位置,目前尽采用四方形束流,以后会有更多的如高斯型等. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
injector.\+h\item 
main.\+cpp\end{DoxyCompactItemize}
